package com.cwits.wifi.util;

/**
 * Created by bob on 15-12-25.
 */
public interface IConstant {

    /**Device IP & Port*/
    String DEFAULT_DEV_IP = "192.168.1.1";
    int AP_MODE_PORT = 3333;
    int RTS_TCP_PORT = 2223;
    int RTS_UDP_PORT = 2224;
    int THUMBNAIL_TCP_PORT = 2226;
    int DEFAULT_HTTP_PORT = 8080;


    /**JSon constants*/
    String JS_MODE_CATEGORY = "mode_category";
    String JS_PHOTO_MODE = "photo_mode";
    String JS_VIDEO_MODE = "video_mode";
    String JS_SETTINGS_MODE = "settings_mode";

    /*Browse server*/
    int BROWSE_SERVER = 0x100B;
    int VIDEO_PLAYER = 0x300D;
    int CAMERA_FRAGMENT = 0x200C;
    String FILE_NAME = "file_name";

    /*FTP login info*/
    String FTP_LOGIN_INFO = "login_info";
    String LIST_FTP_OPERATION ="list_ftp_operation";

    /*Download & upload*/
    String SELECTED_FILE_NAME = "selected_file_name";
    String DOWNLOAD_LOCAL_PATH_NAME = "download_local_path_name";
    String REMOTE_FILE_NAME = "remote_file_name";
    String IS_DOWNLOAD_THUMBNAIL = "is_download_thumbnail";

    String SERVICE_CMD = "service_command";
    int SERVICE_CMD_INIT_SOCKET = 1;
    int SERVICE_CMD_CLOSE_SOCKET = 2;

    String WIFI_PREFIX = "wifi_camera_,168CarDVR-";
    String WIFI_PREFIX_CAMERA = "wifi_camera_";
    String WIFI_PREFIX_CARDVR = "chainway_";
    String WIFI_PREFIX_168 = "168";
    String CURRENT_SSID = "cur_dev_ssid";
    String CURRENT_PWD = "cur_dev_pwd";

    String DEVICE_VERSION_INFO = "device_version_info";

    /*Browse File operation*/
    String BROWSE_FILE_OPERATION_STYLE = "browse_file_operation_style";
    int SELECT_BROWSE_FILE = 0x01;
    int BACK_BROWSE_MODE = 0x02;
    int DELETE_BROWSE_FILE = 0x03;
    int DOWNLOAD_BROWSE_FILE = 0x04;

    String BROWSE_FRAGMENT_TYPE = "browse_fragment_type";

    int ACTIVITY_RESULT_OK = 2000; // TimelineActivity

    int BROWSE_ACTIVITY_RESULT_OK = 2001; // BrowseFileActivity
    String DEVICE_VERSION_INFO_NAME = "vermatch.txt";

    //ftp parameters
    int DEFAULT_FTP_PORT = 21;
    //outer net ftp
    String FTP_HOST_NAME = "cam.jieli.net";
    String FTP_USER_NAME = "jieli@163.com";
    String FTP_PASSWORD = "abcdefg";
    //intranet ftp
    String INSIDE_FTP_HOST_NAME = "192.168.1.1";
    String INSIDE_FTP_USER_NAME = "FTPX";
    String INSIDE_FTP_PASSWORD = "12345678";

    String UPDATE_TEXT = "update_text";
    String UPDATE_FILE = "update_file";
    String UPDATE_TYPE = "update_type";

    String PRODUCT_TYPE = "product_type";
    String ANDROID_VERSION = "android_version";
    String FIRMWARE_DIR = "firmware";
    String ANDROID_DIR = "android";

    String DIALOG_TYPE = "dialog_type";
    String MANDATORY_UPDATE = "mandatory_update";

    int SHOW_NOTIFY_DIALOG = 0xB016;
    int NO_UPDATE_FILE = 0xB017;
    int READ_DATA_ERROR = -1;
    int PRODUCT_NOT_MATCH = 0;
    int APK_NOT_MATCH = 1;
    int SDK_NOT_MATCH = 2;

    int MODE_STATE_168 = 50001;//正常模式
    int MODE_STATE_RM = 50002;//富媒体模式

    String DOWNLOAD_DIR = "download";
    String RECORD_DIR = "record";

    String DEVICE_VERSION_MSG = "device_version_msg";

    String APP_ID = "wx25f4c929710a4976";
    String APP_KEY = "4272289214";
    String REDIRECT_URL = "https://api.weibo.com/oauth2/default.html";
    String SCOPE =
            "email,direct_messages_read,direct_messages_write,"
                    + "friendships_groups_read,friendships_groups_write,statuses_to_me_read,"
                    + "follow_app_official_microblog," + "invitation_write";
}
